<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.14/vue.js"></script>
  </head>

  <body>
    <div id="vueDiv">
      <div>{{newItem}}</div>
      <p v-html="newItem"></p>
    </div>
  </body>

  <script>
   let vue = new Vue({
      el: "#vueDiv",
      data: {
        items: ["apple", "banana", "orange"],
        newItem: "大声发，龙哥",
      },
      methods: {
        addItem: function () {
          this.items.push("grape");
        },
        removeItem: function (index) {
          this.items.splice(index, 1);
        },
      },
    });

    console.log(vue);
    
  </script>
</html>
